package org.example.projecttwo.entity.dto.content.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 点赞相关操作DTO
 * 用于点赞、取消点赞、批量取消点赞等操作的参数传递
 */
@Data
@Schema(name = "LikeDTO", description = "点赞操作请求参数")
public class LikeDTO {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", required = true, example = "1001")
    private Long userId;

    @NotNull(message = "内容类型不能为空")
    @Schema(description = "内容类型（1=文章，2=新闻，3=评论）", required = true, example = "1")
    private Integer contentType;

    @NotNull(message = "内容ID不能为空")
    @Schema(description = "内容ID", required = true, example = "2001")
    private Long contentId;
}